import time

print(time.strftime("%Y-%m-%d %H:%M:%S"))
"2020-04-18 15:37:00"